home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6420 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: prairie.nodak.edu!not-for-mail
  2. From: wstark@prairie.nodak.edu (Just Me)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What to do when feof() is NOT feof()
  5. Date: 24 Feb 1996 12:59:12 -0600
  6. Organization: North Dakota Higher Education Computing Network (NDHECN)
  7. Message-ID: <4gnn60$iba@prairie.nodak.edu>
  8. References: <824554814snz@metsys.demon.co.uk> <Dn7x8s.53s@news.cern.ch>
  9. NNTP-Posting-Host: prairie.nodak.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13.  
  14. In article <Dn7x8s.53s@news.cern.ch>,
  15. Maurizio Loreti <loreti@mxsld2.pd.infn.it> wrote:
  16. >In article <824554814snz@metsys.demon.co.uk>, John Standen <John@metsys.demon.co.uk> writes:
  17.  
  18. >>The do .. while !feof(in) sometimes causes the function to terminate
  19.       ^^^^^^^^^^^ <- note this!
  20. >>very early in the file.
  21.        ^^^^^ <- and this,
  22.  
  23. >Hmmm, you did not notice, reading the FAQ list before posting, Q/A
  24.  
  25. >12.2:    Why does the code
  26.  
  27.  ... (we should all know what the FAQ says anyway :-)
  28.  
  29. >    copy the last line twice?
  30.  
  31. This [section 12.2 of the FAQ] is not related to the original poster's
  32. question.  He was wondering why it was terminating early, not why the last
  33. line was being copied twice.  There is probably a character in the file
  34. that the operating system uses to indicate EOF (which would make it a
  35. platform specific question... perhaps the original poster should find a
  36. newsgroup about programming his platform, and ask there instead?)
  37.